package com.lorenzogao.pley.common.util

import android.content.Context
import com.tbruyelle.rxpermissions2.RxPermissions
import io.reactivex.Observable


/**
 * 作者：Lorenzo Gao
 * Date: 2018/1/11
 * Time: 10:54
 * 邮箱：2508719070@qq.com
 * Description:
 */
class PermissionUtil {

    companion object {

        fun requestPermission(activity: Context, permission: String): Observable<Boolean> {

            var rxPermissions = RxPermissions.getInstance(activity)

            return rxPermissions.request(permission)
        }




    }


}